import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import fire from '@dfeidao/atom-web/msg/fire';

export default async function a002(fd: IFeidaoAiBrowserComponent) {
	// 获取搜索的条件
	const equip_depart = fd.data.node.querySelector<HTMLSelectElement>('[data-id="equip_depart"]').value;
	const project = fd.data.node.querySelector<HTMLSelectElement>('[data-id="project"]').value;
	const asset_classification = fd.data.node.querySelector<HTMLSelectElement>('[data-id="asset_classification"]').value;
	const customer_assets = fd.data.node.querySelector<HTMLSelectElement>('[data-id="customer_assets"]').value;
	const timeout_alert = fd.data.node.querySelector<HTMLSelectElement>('[data-id="timeout_alert"]').value;
	const assetsname = fd.data.node.querySelector<HTMLInputElement>('[data-id="assetsname"]').value;
	// 将参数传递到组件2
	fire('zj-000002', 'a001',equip_depart,project,assetsname,asset_classification,timeout_alert,customer_assets);
}
